<?php
/**
 * Created by PhpStorm.
 * User: hp
 * Date: 2019/2/22
 * Time: 20:30
 */

namespace App\Services\Industry;


use App\Model\Industry;
use App\Services\CommonService;
use Illuminate\Support\Facades\DB;

class IndustryService extends CommonService
{
    public $industry;
    public function __construct()
    {
        $this->industry=new Industry();
    }

    public function showName(){
        $res=$this->industry->findName();
        $arr=array();
        foreach ($res as $v){
            $arr['name'][]=$v['industry_name'];
            $arr['id'][]=$v['industry_id'];
        }
        return json_encode($arr);
    }

}